<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>hexo instructins | Animal Neverland</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="Result: https:&#x2F;&#x2F;phal.atomgit.net&#x2F;neverland&#x2F;2006&#x2F;11&#x2F;03&#x2F;hexo-instructins&#x2F; Useful commands:  1234567891011mkdir - make a new directory open . - open in finder, the dot means current directorynvm &#x3D; node v">
<meta property="og:type" content="article">
<meta property="og:title" content="hexo instructins">
<meta property="og:url" content="https://phal.atomgit.net/neverland/2006/11/03/hexo-instructins/index.html">
<meta property="og:site_name" content="Animal Neverland">
<meta property="og:description" content="Result: https:&#x2F;&#x2F;phal.atomgit.net&#x2F;neverland&#x2F;2006&#x2F;11&#x2F;03&#x2F;hexo-instructins&#x2F; Useful commands:  1234567891011mkdir - make a new directory open . - open in finder, the dot means current directorynvm &#x3D; node v">
<meta property="og:locale">
<meta property="article:published_time" content="2006-11-02T16:00:00.000Z">
<meta property="article:modified_time" content="2025-10-15T21:04:50.434Z">
<meta property="article:author" content="Michael">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/neverland/atom.xml" title="Animal Neverland" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/neverland/favicon.png">
  
  
  
<link rel="stylesheet" href="/neverland/css/style.css">

  
    
<link rel="stylesheet" href="/neverland/fancybox/jquery.fancybox.min.css">

  
  
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.2.0/css/fork-awesome.min.css">

<meta name="generator" content="Hexo 8.0.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/neverland/" id="logo">Animal Neverland</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/neverland/">Home</a>
        
          <a class="main-nav-link" href="/neverland/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/neverland/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Search"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://phal.atomgit.net/neverland"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-hexo-instructins" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/neverland/2006/11/03/hexo-instructins/" class="article-date">
  <time class="dt-published" datetime="2006-11-02T16:00:00.000Z" itemprop="datePublished">2006-11-03</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      hexo instructins
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <p>Result: <a href="https://phal.atomgit.net/neverland/2006/11/03/hexo-instructins/">https://phal.atomgit.net/neverland/2006/11/03/hexo-instructins/</a></p>
<p>Useful commands: </p>
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">mkdir - make a new directory </span><br><span class="line">open . - open in finder, the dot means current directory</span><br><span class="line">nvm = node version manager</span><br><span class="line">nrm = node r? manange - 解决国内网络连接速度慢问题。</span><br><span class="line">cli = client 也就是，客户端，或者机器终端的意思</span><br><span class="line">init = initialize 初始化</span><br><span class="line">deps = dependencies 就是 node.js 的依赖</span><br><span class="line">code . = open current directory with VS Code </span><br><span class="line">如何停掉`hexo server`的服务器 = Ctrl + C 回到命令提示行</span><br><span class="line">hexo serve - 实时更新和预览 hexo 网站</span><br><span class="line">npx serve public - 预览旧版本的，编译好的网站</span><br></pre></td></tr></table></figure>

<h2 id="Steps"><a href="#Steps" class="headerlink" title="Steps"></a>Steps</h2><ol>
<li><p>   Install node (using nvm)</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">nvm list</span><br><span class="line">nvm install v22</span><br><span class="line">which node</span><br><span class="line">node --version</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Install nrm</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">npm install -g nrm</span><br><span class="line">which nrm</span><br><span class="line">nrm --version</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Ensure connectivity in China</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">nrm test</span><br><span class="line">nrm use tencent</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Install hexo-cli</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install -g hexo-cli</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Init hexo</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">mkdir animal-neverland</span><br><span class="line">cd animal-neverland</span><br><span class="line">hexo init</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Install npm deps</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install</span><br></pre></td></tr></table></figure>
</li>
<li><p>   New hexo post</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new post &#x27;Guideline to setup hexo and run your first blog&#x27;</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Hexo serve</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo serve</span><br><span class="line">简写成 hexo s</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Hexo generate</p>
  <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">hexo generate</span><br><span class="line">简写成 hexo g</span><br></pre></td></tr></table></figure>
</li>
<li><p>   Put it online: atomgit</p>
 <figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">url:  https://www.example.com/blog</span><br><span class="line">root: /blog/</span><br></pre></td></tr></table></figure></li>
</ol>
<h2 id="TODO"><a href="#TODO" class="headerlink" title="TODO"></a>TODO</h2><p>git 是什么？ - 版本控制</p>
<h2 id="Next-time"><a href="#Next-time" class="headerlink" title="Next time"></a>Next time</h2><ul>
<li>how to install Hexo theme<br>  <a target="_blank" rel="noopener" href="https://hexo.io/themes/">https://hexo.io/themes/</a></li>
<li>how to edit config.yaml</li>
<li>how to manage atomgit Pages</li>
</ul>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://phal.atomgit.net/neverland/2006/11/03/hexo-instructins/" data-id="cuidTWg4USHoiX-RAbNJhsXbl" data-title="hexo instructins" class="article-share-link"><span class="fa fa-share">Share</span></a>
      
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/neverland/2019/01/01/%E5%8A%A8%E7%89%A9%E5%9B%AD%E9%87%8C%E6%9C%89%E4%BB%80%E4%B9%88/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          动物园里有什么
        
      </div>
    </a>
  
  
    <a href="/neverland/2006/11/03/Get-started-with-Markdown/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Get started with Markdown</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/neverland/tags/%E5%8A%A8%E7%89%A9/" rel="tag">动物</a></li><li class="tag-list-item"><a class="tag-list-link" href="/neverland/tags/%E6%A4%8D%E7%89%A9/" rel="tag">植物</a></li><li class="tag-list-item"><a class="tag-list-link" href="/neverland/tags/%E9%97%A8%E7%A5%A8/" rel="tag">门票</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/neverland/tags/%E5%8A%A8%E7%89%A9/" style="font-size: 20px;">动物</a> <a href="/neverland/tags/%E6%A4%8D%E7%89%A9/" style="font-size: 10px;">植物</a> <a href="/neverland/tags/%E9%97%A8%E7%A5%A8/" style="font-size: 10px;">门票</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2025/10/">October 2025</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2025/09/">September 2025</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2024/01/">January 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2023/03/">March 2023</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2021/10/">October 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2019/01/">January 2019</a></li><li class="archive-list-item"><a class="archive-list-link" href="/neverland/archives/2006/11/">November 2006</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/neverland/2025/10/16/%E6%A2%A6%E5%B9%BB%E5%B2%9B%C2%B7%E8%BF%B7%E4%BD%A0%E6%92%AD%E6%8A%A5/">梦幻岛·迷你播报</a>
          </li>
        
          <li>
            <a href="/neverland/2025/09/16/%E5%BD%93%E9%B3%84%E9%B1%BC%E4%B8%8D%E5%86%8D%E6%BB%B4%E7%AD%94/">当鳄鱼不再滴答</a>
          </li>
        
          <li>
            <a href="/neverland/2024/01/16/%E6%A2%A6%E5%B9%BB%E5%B2%9B%E4%B8%8A%E7%9A%84%E5%8A%A8%E7%89%A9%E7%8E%8B%E5%9B%BD/">梦幻岛上的动物王国</a>
          </li>
        
          <li>
            <a href="/neverland/2023/03/07/%E7%81%AB%E7%83%88%E9%B8%9F-1-%E7%A7%92%E5%87%BA%E7%89%87%E6%95%99%E7%A8%8B/">火烈鸟 1 秒出片教程</a>
          </li>
        
          <li>
            <a href="/neverland/2021/10/07/3-%E7%A7%92%E7%9C%8B%E8%99%8E%EF%BC%81%E5%8D%8E%E5%8D%97%E8%99%8E%E3%80%8C%E7%8F%AD%E6%96%A7%E3%80%8D%E4%BB%8A%E6%97%A5%E4%BB%BD%E8%90%A5%E4%B8%9A/">3 秒看虎！华南虎「班斧」今日份营业</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2025 Michael<br>
      Powered by <a href="https://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/neverland/" class="mobile-nav-link">Home</a>
  
    <a href="/neverland/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/neverland/js/jquery-3.6.4.min.js"></script>



  
<script src="/neverland/fancybox/jquery.fancybox.min.js"></script>




<script src="/neverland/js/script.js"></script>





  </div>
</body>
</html>